{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "品牌=联想（lenovo）,页数=100,当前页数=1\n",
      "品牌=联想（lenovo）,页数=100,当前页数=2\n",
      "品牌=联想（lenovo）,页数=100,当前页数=3\n",
      "品牌=联想（lenovo）,页数=100,当前页数=4\n",
      "品牌=联想（lenovo）,页数=100,当前页数=5\n",
      "品牌=联想（lenovo）,页数=100,当前页数=6\n",
      "品牌=联想（lenovo）,页数=100,当前页数=7\n",
      "品牌=联想（lenovo）,页数=100,当前页数=8\n",
      "品牌=联想（lenovo）,页数=100,当前页数=9\n",
      "品牌=联想（lenovo）,页数=100,当前页数=10\n",
      "品牌=联想（lenovo）,页数=100,当前页数=11\n",
      "品牌=联想（lenovo）,页数=100,当前页数=12\n",
      "品牌=联想（lenovo）,页数=100,当前页数=13\n",
      "品牌=联想（lenovo）,页数=100,当前页数=14\n",
      "品牌=联想（lenovo）,页数=100,当前页数=15\n",
      "品牌=联想（lenovo）,页数=100,当前页数=16\n",
      "品牌=联想（lenovo）,页数=100,当前页数=17\n",
      "品牌=联想（lenovo）,页数=100,当前页数=18\n",
      "品牌=联想（lenovo）,页数=100,当前页数=19\n",
      "品牌=联想（lenovo）,页数=100,当前页数=20\n",
      "品牌=联想（lenovo）,页数=100,当前页数=21\n",
      "品牌=联想（lenovo）,页数=100,当前页数=22\n",
      "品牌=联想（lenovo）,页数=100,当前页数=23\n",
      "品牌=联想（lenovo）,页数=100,当前页数=24\n",
      "品牌=联想（lenovo）,页数=100,当前页数=25\n",
      "品牌=联想（lenovo）,页数=100,当前页数=26\n",
      "品牌=联想（lenovo）,页数=100,当前页数=27\n",
      "品牌=联想（lenovo）,页数=100,当前页数=28\n",
      "品牌=联想（lenovo）,页数=100,当前页数=29\n",
      "品牌=联想（lenovo）,页数=100,当前页数=30\n",
      "品牌=联想（lenovo）,页数=100,当前页数=31\n",
      "品牌=联想（lenovo）,页数=100,当前页数=32\n",
      "品牌=联想（lenovo）,页数=100,当前页数=33\n",
      "品牌=联想（lenovo）,页数=100,当前页数=34\n",
      "品牌=联想（lenovo）,页数=100,当前页数=35\n",
      "品牌=联想（lenovo）,页数=100,当前页数=36\n",
      "品牌=联想（lenovo）,页数=100,当前页数=37\n",
      "品牌=联想（lenovo）,页数=100,当前页数=38\n",
      "品牌=联想（lenovo）,页数=100,当前页数=39\n",
      "品牌=联想（lenovo）,页数=100,当前页数=40\n",
      "品牌=联想（lenovo）,页数=100,当前页数=41\n",
      "品牌=联想（lenovo）,页数=100,当前页数=42\n",
      "品牌=联想（lenovo）,页数=100,当前页数=43\n",
      "品牌=联想（lenovo）,页数=100,当前页数=44\n",
      "品牌=联想（lenovo）,页数=100,当前页数=45\n",
      "品牌=联想（lenovo）,页数=100,当前页数=46\n",
      "品牌=联想（lenovo）,页数=100,当前页数=47\n",
      "品牌=联想（lenovo）,页数=100,当前页数=48\n",
      "品牌=联想（lenovo）,页数=100,当前页数=49\n",
      "品牌=联想（lenovo）,页数=100,当前页数=50\n",
      "品牌=联想（lenovo）,页数=100,当前页数=51\n",
      "品牌=联想（lenovo）,页数=100,当前页数=52\n",
      "品牌=联想（lenovo）,页数=100,当前页数=53\n",
      "品牌=联想（lenovo）,页数=100,当前页数=54\n",
      "品牌=联想（lenovo）,页数=100,当前页数=55\n",
      "品牌=联想（lenovo）,页数=100,当前页数=56\n",
      "品牌=联想（lenovo）,页数=100,当前页数=57\n",
      "品牌=联想（lenovo）,页数=100,当前页数=58\n",
      "品牌=联想（lenovo）,页数=100,当前页数=59\n",
      "品牌=联想（lenovo）,页数=100,当前页数=60\n",
      "品牌=联想（lenovo）,页数=100,当前页数=61\n",
      "品牌=联想（lenovo）,页数=100,当前页数=62\n",
      "品牌=联想（lenovo）,页数=100,当前页数=63\n",
      "品牌=联想（lenovo）,页数=100,当前页数=64\n",
      "品牌=联想（lenovo）,页数=100,当前页数=65\n",
      "品牌=联想（lenovo）,页数=100,当前页数=66\n",
      "品牌=联想（lenovo）,页数=100,当前页数=67\n",
      "品牌=联想（lenovo）,页数=100,当前页数=68\n",
      "品牌=联想（lenovo）,页数=100,当前页数=69\n",
      "品牌=联想（lenovo）,页数=100,当前页数=70\n",
      "品牌=联想（lenovo）,页数=100,当前页数=71\n",
      "品牌=联想（lenovo）,页数=100,当前页数=72\n",
      "品牌=联想（lenovo）,页数=100,当前页数=73\n",
      "品牌=联想（lenovo）,页数=100,当前页数=74\n",
      "品牌=联想（lenovo）,页数=100,当前页数=75\n",
      "品牌=联想（lenovo）,页数=100,当前页数=76\n",
      "品牌=联想（lenovo）,页数=100,当前页数=77\n",
      "品牌=联想（lenovo）,页数=100,当前页数=78\n",
      "品牌=联想（lenovo）,页数=100,当前页数=79\n",
      "品牌=联想（lenovo）,页数=100,当前页数=80\n",
      "品牌=联想（lenovo）,页数=100,当前页数=81\n",
      "品牌=联想（lenovo）,页数=100,当前页数=82\n",
      "品牌=联想（lenovo）,页数=100,当前页数=83\n",
      "品牌=联想（lenovo）,页数=100,当前页数=84\n",
      "品牌=联想（lenovo）,页数=100,当前页数=85\n",
      "品牌=联想（lenovo）,页数=100,当前页数=86\n",
      "品牌=联想（lenovo）,页数=100,当前页数=87\n",
      "品牌=联想（lenovo）,页数=100,当前页数=88\n",
      "品牌=联想（lenovo）,页数=100,当前页数=89\n",
      "品牌=联想（lenovo）,页数=100,当前页数=90\n",
      "品牌=联想（lenovo）,页数=100,当前页数=91\n",
      "品牌=联想（lenovo）,页数=100,当前页数=92\n",
      "品牌=联想（lenovo）,页数=100,当前页数=93\n",
      "品牌=联想（lenovo）,页数=100,当前页数=94\n",
      "品牌=联想（lenovo）,页数=100,当前页数=95\n",
      "品牌=联想（lenovo）,页数=100,当前页数=96\n",
      "品牌=联想（lenovo）,页数=100,当前页数=97\n",
      "品牌=联想（lenovo）,页数=100,当前页数=98\n",
      "品牌=联想（lenovo）,页数=100,当前页数=99\n",
      "品牌=联想（lenovo）,页数=100,当前页数=100\n",
      "品牌=ThinkPad,页数=100,当前页数=1\n",
      "品牌=ThinkPad,页数=100,当前页数=2\n",
      "品牌=ThinkPad,页数=100,当前页数=3\n",
      "品牌=ThinkPad,页数=100,当前页数=4\n",
      "品牌=ThinkPad,页数=100,当前页数=5\n",
      "品牌=ThinkPad,页数=100,当前页数=6\n",
      "品牌=ThinkPad,页数=100,当前页数=7\n",
      "品牌=ThinkPad,页数=100,当前页数=8\n",
      "品牌=ThinkPad,页数=100,当前页数=9\n",
      "品牌=ThinkPad,页数=100,当前页数=10\n",
      "品牌=ThinkPad,页数=100,当前页数=11\n",
      "品牌=ThinkPad,页数=100,当前页数=12\n",
      "品牌=ThinkPad,页数=100,当前页数=13\n",
      "品牌=ThinkPad,页数=100,当前页数=14\n",
      "品牌=ThinkPad,页数=100,当前页数=15\n",
      "品牌=ThinkPad,页数=100,当前页数=16\n",
      "品牌=ThinkPad,页数=100,当前页数=17\n",
      "品牌=ThinkPad,页数=100,当前页数=18\n",
      "品牌=ThinkPad,页数=100,当前页数=19\n",
      "品牌=ThinkPad,页数=100,当前页数=20\n",
      "品牌=ThinkPad,页数=100,当前页数=21\n",
      "品牌=ThinkPad,页数=100,当前页数=22\n",
      "品牌=ThinkPad,页数=100,当前页数=23\n",
      "品牌=ThinkPad,页数=100,当前页数=24\n",
      "品牌=ThinkPad,页数=100,当前页数=25\n",
      "品牌=ThinkPad,页数=100,当前页数=26\n",
      "品牌=ThinkPad,页数=100,当前页数=27\n",
      "品牌=ThinkPad,页数=100,当前页数=28\n",
      "品牌=ThinkPad,页数=100,当前页数=29\n",
      "品牌=ThinkPad,页数=100,当前页数=30\n",
      "品牌=ThinkPad,页数=100,当前页数=31\n",
      "品牌=ThinkPad,页数=100,当前页数=32\n",
      "品牌=ThinkPad,页数=100,当前页数=33\n",
      "品牌=ThinkPad,页数=100,当前页数=34\n",
      "品牌=ThinkPad,页数=100,当前页数=35\n",
      "品牌=ThinkPad,页数=100,当前页数=36\n",
      "品牌=ThinkPad,页数=100,当前页数=37\n",
      "品牌=ThinkPad,页数=100,当前页数=38\n",
      "品牌=ThinkPad,页数=100,当前页数=39\n",
      "品牌=ThinkPad,页数=100,当前页数=40\n",
      "品牌=ThinkPad,页数=100,当前页数=41\n",
      "品牌=ThinkPad,页数=100,当前页数=42\n",
      "品牌=ThinkPad,页数=100,当前页数=43\n",
      "品牌=ThinkPad,页数=100,当前页数=44\n",
      "品牌=ThinkPad,页数=100,当前页数=45\n",
      "品牌=ThinkPad,页数=100,当前页数=46\n",
      "品牌=ThinkPad,页数=100,当前页数=47\n",
      "品牌=ThinkPad,页数=100,当前页数=48\n",
      "品牌=ThinkPad,页数=100,当前页数=49\n",
      "品牌=ThinkPad,页数=100,当前页数=50\n",
      "品牌=ThinkPad,页数=100,当前页数=51\n",
      "品牌=ThinkPad,页数=100,当前页数=52\n",
      "品牌=ThinkPad,页数=100,当前页数=53\n",
      "品牌=ThinkPad,页数=100,当前页数=54\n",
      "品牌=ThinkPad,页数=100,当前页数=55\n",
      "品牌=ThinkPad,页数=100,当前页数=56\n",
      "品牌=ThinkPad,页数=100,当前页数=57\n",
      "品牌=ThinkPad,页数=100,当前页数=58\n",
      "品牌=ThinkPad,页数=100,当前页数=59\n",
      "品牌=ThinkPad,页数=100,当前页数=60\n",
      "品牌=ThinkPad,页数=100,当前页数=61\n",
      "品牌=ThinkPad,页数=100,当前页数=62\n",
      "品牌=ThinkPad,页数=100,当前页数=63\n",
      "品牌=ThinkPad,页数=100,当前页数=64\n",
      "品牌=ThinkPad,页数=100,当前页数=65\n",
      "品牌=ThinkPad,页数=100,当前页数=66\n",
      "品牌=ThinkPad,页数=100,当前页数=67\n",
      "品牌=ThinkPad,页数=100,当前页数=68\n",
      "品牌=ThinkPad,页数=100,当前页数=69\n",
      "品牌=ThinkPad,页数=100,当前页数=70\n",
      "品牌=ThinkPad,页数=100,当前页数=71\n",
      "品牌=ThinkPad,页数=100,当前页数=72\n",
      "品牌=ThinkPad,页数=100,当前页数=73\n",
      "品牌=ThinkPad,页数=100,当前页数=74\n",
      "品牌=ThinkPad,页数=100,当前页数=75\n",
      "品牌=ThinkPad,页数=100,当前页数=76\n",
      "品牌=ThinkPad,页数=100,当前页数=77\n",
      "品牌=ThinkPad,页数=100,当前页数=78\n",
      "品牌=ThinkPad,页数=100,当前页数=79\n",
      "品牌=ThinkPad,页数=100,当前页数=80\n",
      "品牌=ThinkPad,页数=100,当前页数=81\n",
      "品牌=ThinkPad,页数=100,当前页数=82\n",
      "品牌=ThinkPad,页数=100,当前页数=83\n",
      "品牌=ThinkPad,页数=100,当前页数=84\n",
      "品牌=ThinkPad,页数=100,当前页数=85\n",
      "品牌=ThinkPad,页数=100,当前页数=86\n",
      "品牌=ThinkPad,页数=100,当前页数=87\n",
      "品牌=ThinkPad,页数=100,当前页数=88\n",
      "品牌=ThinkPad,页数=100,当前页数=89\n",
      "品牌=ThinkPad,页数=100,当前页数=90\n",
      "品牌=ThinkPad,页数=100,当前页数=91\n",
      "品牌=ThinkPad,页数=100,当前页数=92\n",
      "品牌=ThinkPad,页数=100,当前页数=93\n",
      "品牌=ThinkPad,页数=100,当前页数=94\n",
      "品牌=ThinkPad,页数=100,当前页数=95\n",
      "品牌=ThinkPad,页数=100,当前页数=96\n",
      "品牌=ThinkPad,页数=100,当前页数=97\n",
      "品牌=ThinkPad,页数=100,当前页数=98\n",
      "品牌=ThinkPad,页数=100,当前页数=99\n",
      "品牌=ThinkPad,页数=100,当前页数=100\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=1\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=2\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=3\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=4\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=5\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=6\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=7\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=8\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=9\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=10\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=11\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=12\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=13\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=14\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=15\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=16\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=17\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=18\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=19\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=20\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=21\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=22\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=23\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=24\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=25\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=26\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=27\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=28\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=29\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=30\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=31\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=32\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=33\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=34\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=35\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=36\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=37\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=38\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=39\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=40\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=41\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=42\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=43\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=44\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=45\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=46\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=47\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=48\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=49\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=50\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=51\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=52\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=53\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=54\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=55\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=56\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=57\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=58\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=59\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=60\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=61\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=62\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=63\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=64\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=65\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=66\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=67\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=68\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=69\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=70\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=71\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=72\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=73\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=74\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=75\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=76\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=77\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=78\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=79\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=80\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=81\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=82\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=83\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=84\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=85\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=86\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=87\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=88\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=89\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=90\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=91\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=92\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=93\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=94\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=95\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=96\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=97\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "品牌=戴尔（DELL）,页数=100,当前页数=98\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=99\n",
      "品牌=戴尔（DELL）,页数=100,当前页数=100\n",
      "品牌=惠普（HP）,页数=100,当前页数=1\n",
      "品牌=惠普（HP）,页数=100,当前页数=2\n",
      "品牌=惠普（HP）,页数=100,当前页数=3\n",
      "品牌=惠普（HP）,页数=100,当前页数=4\n",
      "品牌=惠普（HP）,页数=100,当前页数=5\n",
      "品牌=惠普（HP）,页数=100,当前页数=6\n",
      "品牌=惠普（HP）,页数=100,当前页数=7\n",
      "品牌=惠普（HP）,页数=100,当前页数=8\n",
      "品牌=惠普（HP）,页数=100,当前页数=9\n",
      "品牌=惠普（HP）,页数=100,当前页数=10\n",
      "品牌=惠普（HP）,页数=100,当前页数=11\n",
      "品牌=惠普（HP）,页数=100,当前页数=12\n",
      "品牌=惠普（HP）,页数=100,当前页数=13\n",
      "品牌=惠普（HP）,页数=100,当前页数=14\n",
      "品牌=惠普（HP）,页数=100,当前页数=15\n",
      "品牌=惠普（HP）,页数=100,当前页数=16\n",
      "品牌=惠普（HP）,页数=100,当前页数=17\n",
      "品牌=惠普（HP）,页数=100,当前页数=18\n",
      "品牌=惠普（HP）,页数=100,当前页数=19\n",
      "品牌=惠普（HP）,页数=100,当前页数=20\n",
      "品牌=惠普（HP）,页数=100,当前页数=21\n",
      "品牌=惠普（HP）,页数=100,当前页数=22\n",
      "品牌=惠普（HP）,页数=100,当前页数=23\n",
      "品牌=惠普（HP）,页数=100,当前页数=24\n",
      "品牌=惠普（HP）,页数=100,当前页数=25\n",
      "品牌=惠普（HP）,页数=100,当前页数=26\n",
      "品牌=惠普（HP）,页数=100,当前页数=27\n",
      "品牌=惠普（HP）,页数=100,当前页数=28\n",
      "品牌=惠普（HP）,页数=100,当前页数=29\n",
      "品牌=惠普（HP）,页数=100,当前页数=30\n",
      "品牌=惠普（HP）,页数=100,当前页数=31\n",
      "品牌=惠普（HP）,页数=100,当前页数=32\n",
      "品牌=惠普（HP）,页数=100,当前页数=33\n",
      "品牌=惠普（HP）,页数=100,当前页数=34\n",
      "品牌=惠普（HP）,页数=100,当前页数=35\n",
      "品牌=惠普（HP）,页数=100,当前页数=36\n",
      "品牌=惠普（HP）,页数=100,当前页数=37\n",
      "品牌=惠普（HP）,页数=100,当前页数=38\n",
      "品牌=惠普（HP）,页数=100,当前页数=39\n",
      "品牌=惠普（HP）,页数=100,当前页数=40\n",
      "品牌=惠普（HP）,页数=100,当前页数=41\n",
      "品牌=惠普（HP）,页数=100,当前页数=42\n",
      "品牌=惠普（HP）,页数=100,当前页数=43\n",
      "品牌=惠普（HP）,页数=100,当前页数=44\n",
      "品牌=惠普（HP）,页数=100,当前页数=45\n",
      "品牌=惠普（HP）,页数=100,当前页数=46\n",
      "品牌=惠普（HP）,页数=100,当前页数=47\n",
      "品牌=惠普（HP）,页数=100,当前页数=48\n",
      "品牌=惠普（HP）,页数=100,当前页数=49\n",
      "品牌=惠普（HP）,页数=100,当前页数=50\n",
      "品牌=惠普（HP）,页数=100,当前页数=51\n",
      "品牌=惠普（HP）,页数=100,当前页数=52\n",
      "品牌=惠普（HP）,页数=100,当前页数=53\n",
      "品牌=惠普（HP）,页数=100,当前页数=54\n",
      "品牌=惠普（HP）,页数=100,当前页数=55\n",
      "品牌=惠普（HP）,页数=100,当前页数=56\n",
      "品牌=惠普（HP）,页数=100,当前页数=57\n",
      "品牌=惠普（HP）,页数=100,当前页数=58\n",
      "品牌=惠普（HP）,页数=100,当前页数=59\n",
      "品牌=惠普（HP）,页数=100,当前页数=60\n",
      "品牌=惠普（HP）,页数=100,当前页数=61\n",
      "品牌=惠普（HP）,页数=100,当前页数=62\n",
      "品牌=惠普（HP）,页数=100,当前页数=63\n",
      "品牌=惠普（HP）,页数=100,当前页数=64\n",
      "品牌=惠普（HP）,页数=100,当前页数=65\n",
      "品牌=惠普（HP）,页数=100,当前页数=66\n",
      "品牌=惠普（HP）,页数=100,当前页数=67\n",
      "品牌=惠普（HP）,页数=100,当前页数=68\n",
      "品牌=惠普（HP）,页数=100,当前页数=69\n",
      "品牌=惠普（HP）,页数=100,当前页数=70\n",
      "品牌=惠普（HP）,页数=100,当前页数=71\n",
      "品牌=惠普（HP）,页数=100,当前页数=72\n",
      "品牌=惠普（HP）,页数=100,当前页数=73\n",
      "品牌=惠普（HP）,页数=100,当前页数=74\n",
      "品牌=惠普（HP）,页数=100,当前页数=75\n",
      "品牌=惠普（HP）,页数=100,当前页数=76\n",
      "品牌=惠普（HP）,页数=100,当前页数=77\n",
      "品牌=惠普（HP）,页数=100,当前页数=78\n",
      "品牌=惠普（HP）,页数=100,当前页数=79\n",
      "品牌=惠普（HP）,页数=100,当前页数=80\n",
      "品牌=惠普（HP）,页数=100,当前页数=81\n",
      "品牌=惠普（HP）,页数=100,当前页数=82\n",
      "品牌=惠普（HP）,页数=100,当前页数=83\n",
      "品牌=惠普（HP）,页数=100,当前页数=84\n",
      "品牌=惠普（HP）,页数=100,当前页数=85\n",
      "品牌=惠普（HP）,页数=100,当前页数=86\n",
      "品牌=惠普（HP）,页数=100,当前页数=87\n",
      "品牌=惠普（HP）,页数=100,当前页数=88\n",
      "品牌=惠普（HP）,页数=100,当前页数=89\n",
      "品牌=惠普（HP）,页数=100,当前页数=90\n",
      "品牌=惠普（HP）,页数=100,当前页数=91\n",
      "品牌=惠普（HP）,页数=100,当前页数=92\n",
      "品牌=惠普（HP）,页数=100,当前页数=93\n",
      "品牌=惠普（HP）,页数=100,当前页数=94\n",
      "品牌=惠普（HP）,页数=100,当前页数=95\n",
      "品牌=惠普（HP）,页数=100,当前页数=96\n",
      "品牌=惠普（HP）,页数=100,当前页数=97\n",
      "品牌=惠普（HP）,页数=100,当前页数=98\n",
      "品牌=惠普（HP）,页数=100,当前页数=99\n",
      "品牌=惠普（HP）,页数=100,当前页数=100\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=1\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=2\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=3\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=4\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=5\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=6\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=7\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=8\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=9\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=10\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=11\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=12\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=13\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=14\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=15\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=16\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=17\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=18\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=19\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=20\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=21\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=22\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=23\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=24\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=25\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=26\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=27\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=28\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=29\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=30\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=31\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=32\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=33\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=34\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=35\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=36\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=37\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=38\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=39\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=40\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=41\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=42\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=43\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=44\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=45\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=46\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=47\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=48\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=49\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=50\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=51\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=52\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=53\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=54\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=55\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=56\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=57\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=58\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=59\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=60\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=61\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=62\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=63\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=64\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=65\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=66\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=67\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=68\n",
      "品牌=华为（HUAWEI）,页数=100,当前页数=69\n",
      "品牌=Apple,页数=100,当前页数=1\n",
      "品牌=Apple,页数=100,当前页数=2\n",
      "品牌=Apple,页数=100,当前页数=3\n",
      "品牌=Apple,页数=100,当前页数=4\n",
      "品牌=Apple,页数=100,当前页数=5\n",
      "品牌=Apple,页数=100,当前页数=6\n",
      "品牌=Apple,页数=100,当前页数=7\n",
      "品牌=Apple,页数=100,当前页数=8\n",
      "品牌=Apple,页数=100,当前页数=9\n",
      "品牌=Apple,页数=100,当前页数=10\n",
      "品牌=Apple,页数=100,当前页数=11\n",
      "品牌=Apple,页数=100,当前页数=12\n",
      "品牌=Apple,页数=100,当前页数=13\n",
      "品牌=Apple,页数=100,当前页数=14\n",
      "品牌=Apple,页数=100,当前页数=15\n",
      "品牌=Apple,页数=100,当前页数=16\n",
      "品牌=Apple,页数=100,当前页数=17\n",
      "品牌=Apple,页数=100,当前页数=18\n",
      "品牌=Apple,页数=100,当前页数=19\n",
      "品牌=Apple,页数=100,当前页数=20\n",
      "品牌=Apple,页数=100,当前页数=21\n",
      "品牌=Apple,页数=100,当前页数=22\n",
      "品牌=Apple,页数=100,当前页数=23\n",
      "品牌=Apple,页数=100,当前页数=24\n",
      "品牌=Apple,页数=100,当前页数=25\n",
      "品牌=Apple,页数=100,当前页数=26\n",
      "品牌=Apple,页数=100,当前页数=27\n",
      "品牌=Apple,页数=100,当前页数=28\n",
      "品牌=Apple,页数=100,当前页数=29\n",
      "品牌=Apple,页数=100,当前页数=30\n",
      "品牌=Apple,页数=100,当前页数=31\n",
      "品牌=Apple,页数=100,当前页数=32\n",
      "品牌=Apple,页数=100,当前页数=33\n",
      "品牌=Apple,页数=100,当前页数=34\n",
      "品牌=Apple,页数=100,当前页数=35\n",
      "品牌=Apple,页数=100,当前页数=36\n",
      "品牌=Apple,页数=100,当前页数=37\n",
      "品牌=Apple,页数=100,当前页数=38\n",
      "品牌=Apple,页数=100,当前页数=39\n",
      "品牌=Apple,页数=100,当前页数=40\n",
      "品牌=Apple,页数=100,当前页数=41\n",
      "品牌=Apple,页数=100,当前页数=42\n",
      "品牌=Apple,页数=100,当前页数=43\n",
      "品牌=Apple,页数=100,当前页数=44\n",
      "品牌=Apple,页数=100,当前页数=45\n",
      "品牌=Apple,页数=100,当前页数=46\n",
      "品牌=Apple,页数=100,当前页数=47\n",
      "品牌=Apple,页数=100,当前页数=48\n",
      "品牌=Apple,页数=100,当前页数=49\n",
      "品牌=Apple,页数=100,当前页数=50\n",
      "品牌=Apple,页数=100,当前页数=51\n",
      "品牌=Apple,页数=100,当前页数=52\n",
      "品牌=Apple,页数=100,当前页数=53\n",
      "品牌=Apple,页数=100,当前页数=54\n",
      "品牌=Apple,页数=100,当前页数=55\n",
      "品牌=Apple,页数=100,当前页数=56\n",
      "品牌=Apple,页数=100,当前页数=57\n",
      "品牌=Apple,页数=100,当前页数=58\n",
      "品牌=Apple,页数=100,当前页数=59\n",
      "品牌=Apple,页数=100,当前页数=60\n",
      "品牌=Apple,页数=100,当前页数=61\n",
      "品牌=Apple,页数=100,当前页数=62\n",
      "品牌=Apple,页数=100,当前页数=63\n",
      "品牌=Apple,页数=100,当前页数=64\n",
      "品牌=Apple,页数=100,当前页数=65\n",
      "品牌=Apple,页数=100,当前页数=66\n",
      "品牌=Apple,页数=100,当前页数=67\n",
      "品牌=Apple,页数=100,当前页数=68\n",
      "品牌=Apple,页数=100,当前页数=69\n",
      "品牌=Apple,页数=100,当前页数=70\n",
      "品牌=Apple,页数=100,当前页数=71\n",
      "品牌=Apple,页数=100,当前页数=72\n",
      "品牌=Apple,页数=100,当前页数=73\n",
      "品牌=Apple,页数=100,当前页数=74\n",
      "品牌=Apple,页数=100,当前页数=75\n",
      "品牌=Apple,页数=100,当前页数=76\n",
      "品牌=Apple,页数=100,当前页数=77\n",
      "品牌=Apple,页数=100,当前页数=78\n",
      "品牌=Apple,页数=100,当前页数=79\n",
      "品牌=Apple,页数=100,当前页数=80\n",
      "品牌=Apple,页数=100,当前页数=81\n",
      "品牌=Apple,页数=100,当前页数=82\n",
      "品牌=Apple,页数=100,当前页数=83\n",
      "品牌=Apple,页数=100,当前页数=84\n",
      "品牌=Apple,页数=100,当前页数=85\n",
      "品牌=Apple,页数=100,当前页数=86\n",
      "品牌=Apple,页数=100,当前页数=87\n",
      "品牌=Apple,页数=100,当前页数=88\n",
      "品牌=Apple,页数=100,当前页数=89\n",
      "品牌=Apple,页数=100,当前页数=90\n",
      "品牌=Apple,页数=100,当前页数=91\n",
      "品牌=Apple,页数=100,当前页数=92\n",
      "品牌=Apple,页数=100,当前页数=93\n",
      "品牌=Apple,页数=100,当前页数=94\n",
      "品牌=Apple,页数=100,当前页数=95\n",
      "品牌=Apple,页数=100,当前页数=96\n",
      "品牌=Apple,页数=100,当前页数=97\n",
      "品牌=Apple,页数=100,当前页数=98\n",
      "品牌=Apple,页数=100,当前页数=99\n",
      "品牌=Apple,页数=100,当前页数=100\n",
      "品牌=小米（MI）,页数=47,当前页数=1\n",
      "品牌=小米（MI）,页数=47,当前页数=2\n",
      "品牌=小米（MI）,页数=47,当前页数=3\n",
      "品牌=小米（MI）,页数=47,当前页数=4\n",
      "品牌=小米（MI）,页数=47,当前页数=5\n",
      "品牌=小米（MI）,页数=47,当前页数=6\n",
      "品牌=小米（MI）,页数=47,当前页数=7\n",
      "品牌=小米（MI）,页数=47,当前页数=8\n",
      "品牌=小米（MI）,页数=47,当前页数=9\n",
      "品牌=小米（MI）,页数=47,当前页数=10\n",
      "品牌=小米（MI）,页数=47,当前页数=11\n",
      "品牌=小米（MI）,页数=47,当前页数=12\n",
      "品牌=小米（MI）,页数=47,当前页数=13\n",
      "品牌=小米（MI）,页数=47,当前页数=14\n",
      "品牌=小米（MI）,页数=47,当前页数=15\n",
      "品牌=小米（MI）,页数=47,当前页数=16\n",
      "品牌=小米（MI）,页数=47,当前页数=17\n",
      "品牌=小米（MI）,页数=47,当前页数=18\n",
      "品牌=小米（MI）,页数=47,当前页数=19\n",
      "品牌=小米（MI）,页数=47,当前页数=20\n",
      "品牌=小米（MI）,页数=47,当前页数=21\n",
      "品牌=小米（MI）,页数=47,当前页数=22\n",
      "品牌=小米（MI）,页数=47,当前页数=23\n",
      "品牌=小米（MI）,页数=47,当前页数=24\n",
      "品牌=小米（MI）,页数=47,当前页数=25\n",
      "品牌=小米（MI）,页数=47,当前页数=26\n",
      "品牌=小米（MI）,页数=47,当前页数=27\n",
      "品牌=小米（MI）,页数=47,当前页数=28\n",
      "品牌=小米（MI）,页数=47,当前页数=29\n",
      "品牌=小米（MI）,页数=47,当前页数=30\n",
      "品牌=小米（MI）,页数=47,当前页数=31\n",
      "品牌=小米（MI）,页数=47,当前页数=32\n",
      "品牌=小米（MI）,页数=47,当前页数=33\n",
      "品牌=小米（MI）,页数=47,当前页数=34\n",
      "品牌=小米（MI）,页数=47,当前页数=35\n",
      "品牌=小米（MI）,页数=47,当前页数=36\n",
      "品牌=小米（MI）,页数=47,当前页数=37\n",
      "品牌=小米（MI）,页数=47,当前页数=38\n",
      "品牌=小米（MI）,页数=47,当前页数=39\n",
      "品牌=小米（MI）,页数=47,当前页数=40\n",
      "品牌=小米（MI）,页数=47,当前页数=41\n",
      "品牌=小米（MI）,页数=47,当前页数=42\n",
      "品牌=小米（MI）,页数=47,当前页数=43\n",
      "品牌=小米（MI）,页数=47,当前页数=44\n",
      "品牌=小米（MI）,页数=47,当前页数=45\n",
      "品牌=小米（MI）,页数=47,当前页数=46\n",
      "品牌=小米（MI）,页数=47,当前页数=47\n",
      "品牌=宏碁（acer）,页数=43,当前页数=1\n",
      "品牌=宏碁（acer）,页数=43,当前页数=2\n",
      "品牌=宏碁（acer）,页数=43,当前页数=3\n",
      "品牌=宏碁（acer）,页数=43,当前页数=4\n",
      "品牌=宏碁（acer）,页数=43,当前页数=5\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "品牌=宏碁（acer）,页数=43,当前页数=6\n",
      "品牌=宏碁（acer）,页数=43,当前页数=7\n",
      "品牌=宏碁（acer）,页数=43,当前页数=8\n",
      "品牌=宏碁（acer）,页数=43,当前页数=9\n",
      "品牌=宏碁（acer）,页数=43,当前页数=10\n",
      "品牌=宏碁（acer）,页数=43,当前页数=11\n",
      "品牌=宏碁（acer）,页数=43,当前页数=12\n",
      "品牌=宏碁（acer）,页数=43,当前页数=13\n",
      "品牌=宏碁（acer）,页数=43,当前页数=14\n",
      "品牌=宏碁（acer）,页数=43,当前页数=15\n",
      "品牌=宏碁（acer）,页数=43,当前页数=16\n",
      "品牌=宏碁（acer）,页数=43,当前页数=17\n",
      "品牌=宏碁（acer）,页数=43,当前页数=18\n",
      "品牌=宏碁（acer）,页数=43,当前页数=19\n",
      "品牌=宏碁（acer）,页数=43,当前页数=20\n",
      "品牌=宏碁（acer）,页数=43,当前页数=21\n",
      "品牌=宏碁（acer）,页数=43,当前页数=22\n",
      "品牌=宏碁（acer）,页数=43,当前页数=23\n",
      "品牌=宏碁（acer）,页数=43,当前页数=24\n",
      "品牌=宏碁（acer）,页数=43,当前页数=25\n",
      "品牌=宏碁（acer）,页数=43,当前页数=26\n",
      "品牌=宏碁（acer）,页数=43,当前页数=27\n",
      "品牌=宏碁（acer）,页数=43,当前页数=28\n",
      "品牌=宏碁（acer）,页数=43,当前页数=29\n",
      "品牌=宏碁（acer）,页数=43,当前页数=30\n",
      "品牌=宏碁（acer）,页数=43,当前页数=31\n",
      "品牌=宏碁（acer）,页数=43,当前页数=32\n",
      "品牌=宏碁（acer）,页数=43,当前页数=33\n",
      "品牌=宏碁（acer）,页数=43,当前页数=34\n",
      "品牌=宏碁（acer）,页数=43,当前页数=35\n",
      "品牌=宏碁（acer）,页数=43,当前页数=36\n",
      "品牌=宏碁（acer）,页数=43,当前页数=37\n",
      "品牌=宏碁（acer）,页数=43,当前页数=38\n",
      "品牌=宏碁（acer）,页数=43,当前页数=39\n",
      "品牌=宏碁（acer）,页数=43,当前页数=40\n",
      "品牌=宏碁（acer）,页数=43,当前页数=41\n",
      "品牌=宏碁（acer）,页数=43,当前页数=42\n",
      "品牌=宏碁（acer）,页数=43,当前页数=43\n",
      "品牌=荣耀（HONOR）,页数=21,当前页数=1\n",
      "品牌=荣耀（HONOR）,页数=21,当前页数=2\n",
      "品牌=荣耀（HONOR）,页数=21,当前页数=3\n",
      "品牌=荣耀（HONOR）,页数=21,当前页数=4\n",
      "品牌=荣耀（HONOR）,页数=21,当前页数=5\n",
      "品牌=荣耀（HONOR）,页数=21,当前页数=6\n",
      "品牌=荣耀（HONOR）,页数=21,当前页数=7\n",
      "品牌=荣耀（HONOR）,页数=21,当前页数=8\n",
      "品牌=荣耀（HONOR）,页数=21,当前页数=9\n",
      "品牌=荣耀（HONOR）,页数=21,当前页数=10\n",
      "品牌=荣耀（HONOR）,页数=21,当前页数=11\n",
      "品牌=荣耀（HONOR）,页数=21,当前页数=12\n",
      "品牌=荣耀（HONOR）,页数=21,当前页数=13\n",
      "品牌=荣耀（HONOR）,页数=21,当前页数=14\n",
      "品牌=荣耀（HONOR）,页数=21,当前页数=15\n",
      "品牌=荣耀（HONOR）,页数=21,当前页数=16\n",
      "品牌=荣耀（HONOR）,页数=21,当前页数=17\n",
      "品牌=荣耀（HONOR）,页数=21,当前页数=18\n",
      "品牌=荣耀（HONOR）,页数=21,当前页数=19\n",
      "品牌=荣耀（HONOR）,页数=21,当前页数=20\n",
      "品牌=荣耀（HONOR）,页数=21,当前页数=21\n",
      "品牌=机械革命（MECHREVO）,页数=31,当前页数=1\n",
      "品牌=机械革命（MECHREVO）,页数=31,当前页数=2\n",
      "品牌=机械革命（MECHREVO）,页数=31,当前页数=3\n",
      "品牌=机械革命（MECHREVO）,页数=31,当前页数=4\n",
      "品牌=机械革命（MECHREVO）,页数=31,当前页数=5\n",
      "品牌=机械革命（MECHREVO）,页数=31,当前页数=6\n",
      "品牌=机械革命（MECHREVO）,页数=31,当前页数=7\n",
      "品牌=机械革命（MECHREVO）,页数=31,当前页数=8\n",
      "品牌=机械革命（MECHREVO）,页数=31,当前页数=9\n",
      "品牌=机械革命（MECHREVO）,页数=31,当前页数=10\n",
      "品牌=机械革命（MECHREVO）,页数=31,当前页数=11\n",
      "品牌=机械革命（MECHREVO）,页数=31,当前页数=12\n",
      "品牌=机械革命（MECHREVO）,页数=31,当前页数=13\n",
      "品牌=机械革命（MECHREVO）,页数=31,当前页数=14\n",
      "品牌=机械革命（MECHREVO）,页数=31,当前页数=15\n",
      "品牌=机械革命（MECHREVO）,页数=31,当前页数=16\n",
      "品牌=机械革命（MECHREVO）,页数=31,当前页数=17\n",
      "品牌=机械革命（MECHREVO）,页数=31,当前页数=18\n",
      "品牌=机械革命（MECHREVO）,页数=31,当前页数=19\n",
      "品牌=机械革命（MECHREVO）,页数=31,当前页数=20\n",
      "品牌=机械革命（MECHREVO）,页数=31,当前页数=21\n",
      "品牌=机械革命（MECHREVO）,页数=31,当前页数=22\n",
      "品牌=机械革命（MECHREVO）,页数=31,当前页数=23\n",
      "品牌=机械革命（MECHREVO）,页数=31,当前页数=24\n",
      "品牌=机械革命（MECHREVO）,页数=31,当前页数=25\n",
      "品牌=机械革命（MECHREVO）,页数=31,当前页数=26\n",
      "品牌=机械革命（MECHREVO）,页数=31,当前页数=27\n",
      "品牌=机械革命（MECHREVO）,页数=31,当前页数=28\n",
      "品牌=机械革命（MECHREVO）,页数=31,当前页数=29\n",
      "品牌=机械革命（MECHREVO）,页数=31,当前页数=30\n",
      "品牌=机械革命（MECHREVO）,页数=31,当前页数=31\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=1\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=2\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=3\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=4\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=5\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=6\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=7\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=8\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=9\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=10\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=11\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=12\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=13\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=14\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=15\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=16\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=17\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=18\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=19\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=20\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=21\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=22\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=23\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=24\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=25\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=26\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=27\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=28\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=29\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=30\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=31\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=32\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=33\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=34\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=35\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=36\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=37\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=38\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=39\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=40\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=41\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=42\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=43\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=44\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=45\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=46\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=47\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=48\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=49\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=50\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=51\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=52\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=53\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=54\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=55\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=56\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=57\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=58\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=59\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=60\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=61\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=62\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=63\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=64\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=65\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=66\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=67\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=68\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=69\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=70\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=71\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=72\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=73\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=74\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=75\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=76\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=77\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=78\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=79\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=80\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=81\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=82\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=83\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=84\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=85\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=86\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=87\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=88\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=89\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=90\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=91\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=92\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=93\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=94\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=95\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=96\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=97\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=98\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=99\n",
      "品牌=微软（Microsoft）,页数=100,当前页数=100\n",
      "品牌=三星（SAMSUNG）,页数=47,当前页数=1\n",
      "品牌=三星（SAMSUNG）,页数=47,当前页数=2\n",
      "品牌=三星（SAMSUNG）,页数=47,当前页数=3\n",
      "品牌=三星（SAMSUNG）,页数=47,当前页数=4\n",
      "品牌=三星（SAMSUNG）,页数=47,当前页数=5\n",
      "品牌=三星（SAMSUNG）,页数=47,当前页数=6\n",
      "品牌=三星（SAMSUNG）,页数=47,当前页数=7\n",
      "品牌=三星（SAMSUNG）,页数=47,当前页数=8\n",
      "品牌=三星（SAMSUNG）,页数=47,当前页数=9\n",
      "品牌=三星（SAMSUNG）,页数=47,当前页数=10\n",
      "品牌=三星（SAMSUNG）,页数=47,当前页数=11\n",
      "品牌=三星（SAMSUNG）,页数=47,当前页数=12\n",
      "品牌=三星（SAMSUNG）,页数=47,当前页数=13\n",
      "品牌=三星（SAMSUNG）,页数=47,当前页数=14\n",
      "品牌=三星（SAMSUNG）,页数=47,当前页数=15\n",
      "品牌=三星（SAMSUNG）,页数=47,当前页数=16\n",
      "品牌=三星（SAMSUNG）,页数=47,当前页数=17\n",
      "品牌=三星（SAMSUNG）,页数=47,当前页数=18\n",
      "品牌=三星（SAMSUNG）,页数=47,当前页数=19\n",
      "品牌=三星（SAMSUNG）,页数=47,当前页数=20\n",
      "品牌=三星（SAMSUNG）,页数=47,当前页数=21\n",
      "品牌=三星（SAMSUNG）,页数=47,当前页数=22\n",
      "品牌=三星（SAMSUNG）,页数=47,当前页数=23\n",
      "品牌=三星（SAMSUNG）,页数=47,当前页数=24\n",
      "品牌=三星（SAMSUNG）,页数=47,当前页数=25\n",
      "品牌=三星（SAMSUNG）,页数=47,当前页数=26\n",
      "品牌=三星（SAMSUNG）,页数=47,当前页数=27\n",
      "品牌=三星（SAMSUNG）,页数=47,当前页数=28\n",
      "品牌=三星（SAMSUNG）,页数=47,当前页数=29\n",
      "品牌=三星（SAMSUNG）,页数=47,当前页数=30\n",
      "品牌=三星（SAMSUNG）,页数=47,当前页数=31\n",
      "品牌=三星（SAMSUNG）,页数=47,当前页数=32\n",
      "品牌=三星（SAMSUNG）,页数=47,当前页数=33\n",
      "品牌=三星（SAMSUNG）,页数=47,当前页数=34\n",
      "品牌=三星（SAMSUNG）,页数=47,当前页数=35\n",
      "品牌=三星（SAMSUNG）,页数=47,当前页数=36\n",
      "品牌=三星（SAMSUNG）,页数=47,当前页数=37\n",
      "品牌=三星（SAMSUNG）,页数=47,当前页数=38\n",
      "品牌=三星（SAMSUNG）,页数=47,当前页数=39\n",
      "品牌=三星（SAMSUNG）,页数=47,当前页数=40\n",
      "品牌=三星（SAMSUNG）,页数=47,当前页数=41\n",
      "品牌=三星（SAMSUNG）,页数=47,当前页数=42\n",
      "品牌=三星（SAMSUNG）,页数=47,当前页数=43\n",
      "品牌=三星（SAMSUNG）,页数=47,当前页数=44\n",
      "品牌=三星（SAMSUNG）,页数=47,当前页数=45\n",
      "品牌=三星（SAMSUNG）,页数=47,当前页数=46\n",
      "品牌=三星（SAMSUNG）,页数=47,当前页数=47\n"
     ]
    }
   ],
   "source": [
    "import requests\n",
    "from lxml import etree # 利用lxml库解析转码\n",
    "import json\n",
    "import time\n",
    "\n",
    "# 利用插件写一个反爬\n",
    "headers = {\n",
    "            'user-agent':'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3947.100 Safari/537.36',\n",
    "        }\n",
    "\n",
    "# 将数据写入excel\n",
    "import openpyxl\n",
    "outwb = openpyxl.Workbook()\n",
    "outws = outwb.create_sheet(index=0)\n",
    "outws.cell(row=1, column=1, value=\"index\")\n",
    "outws.cell(row=1, column=2, value=\"brand\")\n",
    "outws.cell(row=1, column=3, value=\"title\")\n",
    "outws.cell(row=1, column=4, value=\"price\")\n",
    "count = 2\n",
    "\n",
    "\n",
    "###获取每一页的商品数据\n",
    "def getlist(url,brand):\n",
    "    global  count\n",
    "    #url=\"https://search.jd.com/search?keyword=笔记本&wq=笔记本&ev=exbrand_联想%5E&page=9&s=241&click=1\"\n",
    "    res = requests.get(url,headers=headers)\n",
    "    res.encoding = 'utf-8'\n",
    "    text = res.text\n",
    "\n",
    "# 使用xapth解析数据\n",
    "    selector = etree.HTML(text)\n",
    "    list = selector.xpath('//*[@id=\"J_goodsList\"]/ul/li')\n",
    "\n",
    "    for i in list:\n",
    "        title=i.xpath('.//div[@class=\"p-name p-name-type-2\"]/a/em/text()')[0]\n",
    "        price = i.xpath('.//div[@class=\"p-price\"]/strong/i/text()')[0]\n",
    "        #product_id = i.xpath('.//div[@class=\"p-commit\"]/strong/a/@id')[0].replace(\"J_comment_\",\"\")\n",
    "\n",
    "\n",
    "        ###获取商品评论数\n",
    "        #comment_count = commentcount(product_id)\n",
    "        #print(\"title=\"+str(title))\n",
    "        #print(\"price=\"+str(price))\n",
    "        #print(\"comment_count=\"+str(comment_count))\n",
    "\n",
    "        outws.cell(row=count, column=1, value=str(count-1))\n",
    "        outws.cell(row=count, column=2, value=str(brand))\n",
    "        outws.cell(row=count, column=3, value=str(title))\n",
    "        outws.cell(row=count, column=4, value=str(price))\n",
    "\n",
    "\n",
    "        count = count +1\n",
    "\n",
    "\n",
    "\n",
    "#遍历每一页\n",
    "def getpage(brand_dict):\n",
    "    global  count\n",
    "    for k, v in brand_dict.items():\n",
    "\n",
    "        page = 1\n",
    "        s = 1\n",
    "        brand = str(k)\n",
    "        try:\n",
    "            for i in range(1, int(v) + 1):\n",
    "                url = \"https://search.jd.com/search?keyword=笔记本&wq=笔记本&ev=exbrand_\" + str(brand) + \"&page=\" + str(\n",
    "                    page) + \"&s=\" + str(s) + \"&click=1\"\n",
    "                getlist(url, brand)\n",
    "                page = page + 2\n",
    "                s = s + 60\n",
    "                print(\"品牌=\" + str(k) + \",页数=\" + str(v) + \",当前页数=\" + str(i))\n",
    "        except:\n",
    "            pass\n",
    "\n",
    "\n",
    "    outwb.save(\"笔记本电脑.xls\")  # 保存\n",
    "\n",
    "#开始爬取\n",
    "# 规定了每种品牌的电脑爬多少页\n",
    "brand_dict={\n",
    "    '联想（lenovo）':100,\n",
    "    'ThinkPad':100,\n",
    "    '戴尔（DELL）':100,\n",
    "    '惠普（HP）':100,\n",
    "    '华为（HUAWEI）':100,\n",
    "    'Apple':100,\n",
    "    '小米（MI）':47,\n",
    "    '宏碁（acer）':43,\n",
    "    '荣耀（HONOR）':21,\n",
    "    '机械革命（MECHREVO）':31,\n",
    "    '微软（Microsoft）':100,\n",
    "    '三星（SAMSUNG）':47,\n",
    "}\n",
    "\n",
    "getpage(brand_dict)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
